package com.soccertgc.comm
{
	import com.soccertgc.comm.CallEvent;

	public class CallErrorEvent extends CallEvent
	{
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function CallErrorEvent(call:Call)
		{
			super(CallEvent.EVENT_CALL_ERROR, call);
		}
		
		// -------------------------------------------------------------------------------
		// PUBLIC METHODS
		// -------------------------------------------------------------------------------
		
		override public function toString():String
		{
			return "Call " + _call.url + " in error: " + call.error.toString() + " - url: " + _call.toUrl(); 
		}

	}
}